package at.stefanirndorfer.openaltest.entity;

import at.fhooe.stefanirndorfer.engine.game.Game;
import at.stefanirndorfer.openaltest.graphics.Visual;

public abstract class Entity extends Visual{

	public Entity(){
		super();
		setUpEntity();
	}
	
	public abstract void update(int delta);
	
	public abstract double[] getPosition();
	
	void setUpEntity(){
		Game.getInstance().getEntityManager().addEntity(this);
	}
	
	void tearDownEntity(){
		Game.getInstance().getEntityManager().removeEntity(this);
	}
}
